package design_pattern.proxy.test1;

/**
 * Created by WeiDingKuo on 2017/10/25 19:20
 * <p>
 * 代理对象
 */
public class Proxy implements Target {
    private Target target;

    public Proxy(Target target) {
        this.target = target;
    }

    @Override
    public void dosomething() {
        System.out.println("before");
        this.target.dosomething();
        System.out.println("after");
    }
}

